package com.cl.blog.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @Author 付
 * @Date 2024-04-01 10:01
 * @Version 1.0
 * @description
 * @since 1.0
 */
@Data
public class ClientAddContent implements Serializable {
	private Integer id;
	@NotBlank(message = "抱歉，文章标题不能为空")
	private String title;
	@NotBlank(message = "抱歉，文章内容不能为空")
	private String content;
	@NotBlank(message = "抱歉，文章描述不能为空")
	private String description;
	@NotBlank(message = "抱歉，文章首图不能为空")
	private String firstPicture;
	@NotNull(message = "抱歉，文章类型不能为空")
	private Integer model;
	/**
	 * 默认开启
	 */
	private Integer review = 1;
	@NotBlank(message = "抱歉，文章标签至少一个")
	private String tag;
	@NotNull(message = "抱歉，文章分类不能为空")
	private Integer type;
	private List<ImageList> imageList;
	private Integer status;
	private Date delayTime;
}
